#ifndef MAFENETRE_H_INCLUDED
#define MAFENETRE_H_INCLUDED

#include <QtGui>
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#include <QMessageBox>

class MaFenetre : public QMainWindow // On hÈrite de QWidget (IMPORTANT)
{

	Q_OBJECT

    public:
    MaFenetre();
	QLabel *label_img;
	QLabel *label_photometrie_img;
	QLabel *label_arithmetique_img;
	QLabel *label_arithmetique_res_img;
	QLabel *label_hauteur_img;
	QLabel *label_largeur_img;
	QImage img;
	QImage img_modif;
	QImage thumb;
	QImage img_arithmetique;
	QImage thumb_arithmetique_res;
	QImage thumb_arithmetique;
	QString fichierDeSauvegarde;
	bool isSave;
	QSlider *slide_luminosite;
	QPushButton *btn_negatif;
	QPushButton *btn_luminosite;

    public slots:
    void ouvrirImage();
    void ouvrirImageArithmetique();
	void fermerImage();
	void sauvegarder();
	bool sauvegarderSous();
	void photometrie_negatif();
	void photometrie_luminosite();
	void photometrie_luminosite(int);
	void photometrie_exploitation();
	void arithmetique_addition();
	void arithmetique_soustraction();
	void arithmetique_multiplication();
	void arithmetique_division();
	void arithmetique_maximum();
	void arithmetique_minimum();
	void arithmetique_et();
	void arithmetique_ou();

    private:
    QAction *actionOuvrir;
	QAction *actionFermer;
	QAction *actionEnregistrer;
	QAction *actionEnregistrer_sous;
	QAction *actionAide;
	QAction *actionA_Propos;
	QAction *actionQuitter;
	QAction *actionCopier;
	QAction *actionColler;
	QWidget *centralwidget;
	QMenuBar *menubar;
	QMenu *menuFichier;
	QMenu *menuEdition;
	QMenu *menuAide;
	QStatusBar *statusbar;
	QPushButton *m_boutonDialogue;
	QLabel *page_principal;
	QLabel* setPage_Photometrie(MaFenetre*);
	QLabel* setPage_Arithmetique(MaFenetre*);

};

#endif // MAFENETRE_H_INCLUDED
